package com.rasou;

import org.geektimes.event.EventListener;
import org.geektimes.event.distributed.DistributedEventObject;

import java.util.EventObject;

public class LocalMsgFromRemoteListener implements EventListener {
    @Override
    public void onEvent(EventObject event) {
        if ( !(event instanceof DistributedEventObject) ) {
            System.out.printf( "[Thread : %s] Handles %s[Source : %s]\n",
                    Thread.currentThread().getName(),
                    event.getClass().getSimpleName(),
                    event.getSource() );
        }
    }
}
